package com.wsllx.springboot.annotation;

import com.wsllx.springboot.config.OnClassCondition;
import org.springframework.context.annotation.Conditional;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 条件注解
 */
@Target({ ElementType.TYPE, ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
@Conditional(OnClassCondition.class)
public @interface ConditionalOnClass {
	//@ConditionalOnClass("") 注解里的字符串，改注解所覆盖的对象会把值赋值给value
	//
	String value();
}
